package com.swgk.core.common.base;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;

/**
 * @author: 杨畔
 * @date: 2021/2/20 15:22
 * @Description: viewModel基类
 */
public abstract class BaseViewModel extends AndroidViewModel {
    public final static int SHOW_LODING = 0x1;
    public final static int DISMISS_LODING = 0x2;
    public final static int FINISH_AND_DISMISS_LODING = 0x3;
    public MutableLiveData<String> mToast = new MutableLiveData<>();
    public MutableLiveData<Integer> mLoading = new MutableLiveData<>();
    public BaseViewModel(@NonNull Application application) {
        super(application);
    }
}
